#include "simworld.h"

#include <iostream>

#include "../gamestate.h"
#include "../module.h"

SimWorld::SimWorld(){}

void SimWorld::Setup(){
//    gamestate->CreateShip(0, 0);
    gamestate->CreateModule();
}

void SimWorld::Update(int dt){
    std::cout<<"Update: "<<dt<<std::endl;
    std::vector<Module*> modules = gamestate->GetModules();
    for(Module* module:modules){
        module->Update(dt);
    }
}
